onload = function(){

$("#armybutton").click(function(){
	var armyname = $("#armyname").val();
	var armycolor = $("#armycolor").val();
	var armynation = $("#armynation").val();
	$("<input type='hidden' value='" + armyname + "' name='armynamearray[]'/>").appendTo("#sendform");
	$("<input type='hidden' value='" + armycolor + "' name='armycolorarray[]'/>").appendTo("#sendform");
	$("<input type='hidden' value='" + armynation + "' name='armynationarray[]'/>").appendTo("#sendform");
	$("<div>" + armyname + " " + armycolor + " " + armynation + "</div>").appendTo("#armies");
	//console.debug(a);
});

$("#provbutton").click(function(){
	var provname = $("#provname").val();
	var provcolor = $("#provcolor").val();
	$("<input type='hidden' value='" + provname + "' name='provnamearray[]'/>").appendTo("#sendform");
	$("<input type='hidden' value='" + provcolor + "' name='provcolorarray[]'/>").appendTo("#sendform");
	$("<div>" + provname + " " + provcolor + "</div>").appendTo("#provinces");
});

};


